package org.jeecg.modules.demo.jxcx.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.jxcx.mapper.JxcCostMapper;
import org.jeecg.modules.demo.jxcx.po.JxcCost;
import org.jeecg.modules.demo.jxcx.service.JxcCostService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author DeskTop
* @description 针对表【jxc_cost】的数据库操作Service实现
* @createDate 2024-07-23 17:17:18
*/
@Service
public class JxcCostServiceImpl extends ServiceImpl<JxcCostMapper, JxcCost>
implements JxcCostService{


    @Override
    public List<JxcCost> getByConpanyId(String companyId) {
        return baseMapper.getCostsByCompanyId(companyId);
    }

    @Override
    public List<JxcCost> getBylike(String like, String companyId) {
        return baseMapper.getBylike(like, companyId);
    }

    @Override
    public String getamount(String day, String companyId) {
        return baseMapper.getamount(day, companyId);
    }

    @Override
    public JxcCost getBy(String id, String companyId) {
        return baseMapper.getBy(id, companyId);
    }

    @Override
    public String getyueamount(String day, String companyId) {
        return baseMapper.getyueamount(day, companyId);
    }

    @Override
    public String getnianamount(String day, String companyId) {
        return baseMapper.getnianamount(day, companyId);
    }

    @Override
    public Boolean updateByComId(JxcCost jxcCost) {
        return baseMapper.updateByComId(jxcCost);
    }

}
